#导入库
from flask import Flask,render_template
#创建一个对象实例
app = Flask(__name__)
#给定访问路径
@app.route("/")
def index():
    return render_template('index.html')
@app.route("/kpop")
def kpop():
    return render_template('kpop.html')
@app.route("/friend")
def friend():
    return render_template('friend.html')
@app.route("/food")
def food():
    return render_template('food.html')
#运行app实例
#保护权限if __name__=='__main__'
if __name__=='__main__':
    app.run(host="0.0.0.0",port=8080)